package com.icoolkj.mall.common;

public enum ResultEnum implements IResult {

    SUCCESS(200, "接口调用成功"),

    FAIL(500, "接口调用失败");

    private int code;

    private String message;

    ResultEnum() {
    }

    ResultEnum(int code, String message) {
        this.code = code;
        this.message = message;
    }

    @Override
    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    @Override
    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
